Skip to content

Conversation

MasterPtato
Copy link
Contributor

No description provided.

Copy link

vercel bot commented Sep 8, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
rivet-cloud Error Error Sep 16, 2025 9:13am
rivet-site Ready Ready Preview Comment Sep 16, 2025 9:13am
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
rivet-studio Ignored Ignored Preview Sep 16, 2025 9:13am

Copy link

claude bot commented Sep 8, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

Copy link
Contributor Author

MasterPtato commented Sep 8, 2025


How to use the Graphite Merge Queue

Add the label merge-queue to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link

pkg-pr-new bot commented Sep 8, 2025

Open in StackBlitz

npm i https://pkg.pr.new/rivet-gg/engine/@rivetkit/engine-runner@2883
npm i https://pkg.pr.new/rivet-gg/engine/@rivetkit/engine-runner-protocol@2883
npm i https://pkg.pr.new/rivet-gg/engine/@rivetkit/engine-tunnel-protocol@2883

commit: 3df4e46

@@ -174,18 +174,17 @@ fn bytes_to_i64_le(bytes: &[u8]) -> i64 {
}

let mut padded = [0u8; 8];
let len = bytes.len().min(8);
let len = bytes.len();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Security Issue: Buffer Overflow Risk

There's a potential buffer overflow vulnerability in this change. The original code had a safety constraint with .min(8) that limited the number of bytes copied to the size of the padded array:

let len = bytes.len().min(8);

This constraint has been removed in the new code:

let len = bytes.len();

If bytes.len() exceeds 8, the subsequent line padded[..len].copy_from_slice(&bytes[..len]) will attempt to copy more bytes than the padded array can hold (which is fixed at 8 bytes), resulting in a buffer overflow. This would cause either a panic at runtime or memory corruption depending on the execution context.

The original .min(8) constraint should be restored to maintain memory safety.

Suggested change
let len = bytes.len();
let len = bytes.len().min(8);

Spotted by Diamond

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

}
RunnerKind::Custom => {
// Clear outbound data
txs.delete_key_subspace(&rivet_types::keys::pegboard::ns::OutboundDesiredSlotsKey::subspace(namespace_id));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When calling delete_key_subspace() with OutboundDesiredSlotsKey::subspace(namespace_id), there's a potential issue with the subspace targeting. Please verify that this correctly deletes all keys under the namespace's outbound desired slots. The method creates a subspace for a specific namespace, but it's important to ensure the deletion logic properly targets all relevant keys to prevent data inconsistency or orphaned records. Consider adding a test case that confirms complete cleanup of these keys when switching from Outbound to Custom runner kind.

Spotted by Diamond

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

@MasterPtato MasterPtato force-pushed the 09-05-feat_pegboard_outbound_runners branch from fc97845 to e2ebdb7 Compare September 8, 2025 22:43
@MasterPtato MasterPtato force-pushed the 09-08-feat_ns_implement_namespace_updates_global_cache_purge branch from 3f420f5 to c376b93 Compare September 8, 2025 22:43
Copy link

claude bot commented Sep 8, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

Copy link

claude bot commented Sep 8, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

Copy link

claude bot commented Sep 9, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

Copy link

claude bot commented Sep 9, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

This was referenced Sep 9, 2025
@MasterPtato MasterPtato force-pushed the 09-08-feat_ns_implement_namespace_updates_global_cache_purge branch from 8b5ef7d to 4976f94 Compare September 11, 2025 21:33
@MasterPtato MasterPtato force-pushed the 09-05-feat_pegboard_outbound_runners branch from 008ff72 to 236f452 Compare September 11, 2025 21:33
Copy link

claude bot commented Sep 11, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

Copy link

claude bot commented Sep 11, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

@NathanFlurry NathanFlurry force-pushed the 09-05-feat_pegboard_outbound_runners branch from 57c4d39 to e328b2d Compare September 14, 2025 20:00
@NathanFlurry NathanFlurry force-pushed the 09-08-feat_ns_implement_namespace_updates_global_cache_purge branch from 02c9438 to 21d608d Compare September 14, 2025 20:00
Copy link

claude bot commented Sep 14, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

Copy link

claude bot commented Sep 15, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

Copy link

claude bot commented Sep 15, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

@MasterPtato MasterPtato force-pushed the 09-05-feat_pegboard_outbound_runners branch from 57c4d39 to 5ddcc85 Compare September 15, 2025 18:04
@MasterPtato MasterPtato force-pushed the 09-08-feat_ns_implement_namespace_updates_global_cache_purge branch from 02c9438 to 3df4e46 Compare September 15, 2025 18:04
Copy link

claude bot commented Sep 15, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

Copy link

claude bot commented Sep 15, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

@NathanFlurry NathanFlurry force-pushed the 09-08-feat_ns_implement_namespace_updates_global_cache_purge branch from 3df4e46 to 012075b Compare September 16, 2025 08:12
@NathanFlurry NathanFlurry merged commit a7bc0bc into main Sep 16, 2025
4 of 11 checks passed
@NathanFlurry NathanFlurry deleted the 09-08-feat_ns_implement_namespace_updates_global_cache_purge branch September 16, 2025 08:12
Copy link

claude bot commented Sep 16, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants